addpopupmenu
Adds a pop-up menu, in hierarchical order, under a ribbon menu or as a child menu to a pop-up menu in the Compose user interface. addpopupmenu is only available in the Compose GUI.
Syntax
addpopupmenu(rbname, popupname)
addpopupmenu(uiPopupMenu, popupname)
Inputs
- rbname
- The name of the ribbon menu.
- uiPopupMenu
- The handle of the ribbon menu or pop-up menu.
- popupname
- The pop-up menu name.
Outputs
- uiPopupMenu
- The handle to the pop-up menu.
Examples
pm = addribbonmenu('Test');
pp = addpopupmenu('Test','Test 1');
pp1 = addpopupmenu(pm,'Test 2');